{% extends 'base.html' %}

{% block header %}
<div id="header">
<span id="title"><a href="/edit">GuteCMS Editor</a></span><br/>
{% if user %}
<ul style="font-size:10pt">
{% if role.editor %}<li><a href="/edit/pages/list" class="button ui-state-default ui-corner-all">Pages</a></li>{% endif %}
{% if role.manager %}<li><a href="/edit/roles/list" class="button ui-state-default ui-corner-all">Roles</a></li>{% endif %}
{% if role.admin and env.development %}<li><a href="/_ah/admin" class="button ui-state-default ui-corner-all">Admin</a></li>{% endif %}
{% if logout_url %}<li><a href="{{logout_url}}" class="button ui-state-default ui-corner-all">Logout</a></li>{% endif %}
<li>{{user.nickname}}</li>
</ul>
{% endif %}
</div>
{% endblock %}

{% block content %}
<div class="content">
Content
</div>
{% endblock %}
